import { createApp } from 'vue';
import App from './App.vue';
import router from '../router/index.js';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import { createPinia } from 'pinia';
import { useAuthStore } from './store/authStore';

const app = createApp(App);
const pinia = createPinia();

app.use(pinia);
app.use(ElementPlus);
app.use(router);

// 初始化认证状态
const authStore = useAuthStore();
authStore.initializeAuth();

app.mount('#app');
